package Example;

public class Node {
	private Node prev;
	private int x;
	private int y;
	private int i;
	private int j;
	private Node next;
	
	public Node() {
		
	}
	
	public Node(Node prev,int x,int y,int i,int j) {
		this.prev=prev;
		this.x=x;
		this.y=y;
		this.i=i;
		this.j=j;
	}
	
	public boolean hasNext() {
		return null!=this.next;
	}
	
	public Node getNext() {
		return this.next;
	}
	
	public void setNext(Node next) {
		this.next=next;
	}
	
	public Node getPrev() {
		return this.prev;
	}
	
	public void setPrev(Node prev) {
		this.prev=prev;
	}
	
	public int getX() {
		return this.x;
	}
	
	public int getY() {
		return this.y;
	}
	
	public int getI() {
		return this.i;
	}
	
	public int getJ() {
		return this.j;
	}
	public void setI(int i) {
		this.i=i;
	}
	
	public void setJ(int j) {
		this.j=j;
	}
}
